package train48days;

import java.util.*;

public class 乒乓球筐 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            String boxA = sc.next();
            String boxB = sc.next();

            HashMap<Character,Integer> mapA = new HashMap<>();
            for (int i = 0; i < boxA.length(); i++) {
                char a = boxA.charAt(i);
                if (!mapA.containsKey(a)){
                    mapA.put(a,1);
                }else {
                    mapA.put(a, mapA.get(a)+1);
                }
            }
            HashMap<Character,Integer> mapB= new HashMap<>();
            for (int i = 0; i < boxB.length(); i++) {
                char a = boxB.charAt(i);
                if (!mapA.containsKey(a)){
                    mapA.put(a,1);
                }else {
                    mapA.put(a, mapA.get(a)+1);
                }
            }
            boolean flag = false;
            for (int i = 0; i < boxB.length(); i++) {
                char a = boxB.charAt(i);
                if (!(mapA.containsKey(a)&&mapA.get(a)>mapB.get(a))){
                    flag=true;
                    return;
                }
            }
            System.out.println(flag==true ? "No":"Yes");
        }
    }
}
